import os
import sys

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))


class Config:
    dir_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))   # 根目录路径

    root_path = os.path.realpath(__file__)                                   # 当前路径

    output_path = os.path.join(dir_path, 'test_report')                       # 输出文件路径

    log_path = os.path.join(output_path, 'logs')                             # 日志路径

    datas_path = os.path.join(dir_path, 'datas')                             # 数据路径

    config_path = os.path.join(dir_path, 'config', 'config_info.ini')        # 配置信息路径

    jarfile_path = os.path.join(datas_path, "datafile", "DmJdbcDriver18.jar")   # 达梦连接jar包

    yaml_file_path=os.path.join(datas_path, "datas.yaml")  # yaml文件路径


    zygx_path = os.path.join(datas_path, '低空资源共享中心.xlsx')
    yxgl_path = os.path.join(datas_path, '低空运行管理平台.xlsx')
    fwmh_path = os.path.join(datas_path, '低空服务门户.xlsx')
    JCYJ_path = os.path.join(datas_path, '低空监测预警中心.xlsx')

    @staticmethod
    def createreport(self):
        if not os.path.exists(self.output_path):
            os.mkdir(self.output_path)


if __name__ == '__main__':
    print(Config.log_path)
